#include "photon.h"
#include <cmath>

Photon::Photon(void)
{
	x = y = z = 0;
	dirx = diry = dirz = 0;
	weight = 1;
	step = 0;
}

Photon::Photon(double x, double y, double z,
		double dirx, double diry, double dirz, double weight)
{
	this->x = x;
	this->y = y;
	this->z = z;
	
	this->dirx = dirx;
	this->diry = diry;
	this->dirz = dirz;

	this->weight = 1;
	step = 0;
}

Photon::~Photon(void)
{

}

void Photon::updateLocation(void)
{
	// FINISH ME
}

void Photon::specular(double n1, double n2)
{
	weight = weight - (pow((n1 - n2), 2) / pow((n1 + n2), 2)) * weight;
}

